import start from './bpmn/start.png';
import end from './bpmn/end.png';
import ParallelGateway from './bpmn/parallelGateway.png';
import userTask from './bpmn/userTask.png';

// 自定义元素的类型，此时我们只需要自定义一种节点，所以数组只有一个元素
const customElements = ['bpmn:StartEvent','bpmn:EndEvent','bpmn:gateWay','bpmn:task'];
const customConfig = {
  // 自定义元素的配置
  startEvent: {
    url: start,
    attr: {x: 0, y: 0, width: 50, height: 50}
  },
  endEvent: {
    url: end,
    attr: {x: 0, y: 0, width: 50, height: 50}
  },
  gateWay: {
    url: ParallelGateway,
    attr: {x: 0, y: 0, width: 50, height: 50}
  },
  task: {
    url: userTask,
    attr: {x: 0, y: 0, width: 50, height: 50}
  }

};
const hasLabelElements = ['bpmn:StartEvent','bpmn:ParallelGateway','bpmn:UserTask', 'bpmn:EndEvent'] // 一开始就有label标签的元素类型
export {customElements, customConfig,hasLabelElements};